//
//  ViewTestControllerViewController.m
//  TrunkIndustryManageSystem
//
//  Created by 李璐西 on 15-4-13.
//  Copyright (c) 2015年 李璐西. All rights reserved.
//
#import "BiApplyForSaleViewController.h"
#import "ViewTestControllerViewController.h"
#import "BiLoginViewController.h"
@interface ViewTestControllerViewController ()

@end

@implementation ViewTestControllerViewController

//- (instancetype)init
//{
//    self = [super init];
//    if (self) {
//       
//    }
//    return self;
//}

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self setNavBarWithHidden:NO];
    [self setNavBarTitle:@"test"];
    [self setNavBackBtn];
//    UIBarButtonItem *uibar = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:(UIBarButtonSystemItemBookmarks) target:self action:@selector(uibar:)];
//    self.navigationController.title = @"测试页面";
//    self.navigationItem.leftBarButtonItem = uibar;
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIButton *btn1 = [[UIButton alloc] initWithFrame:CGRectMake(0, 0+100, 320, 44)];
    btn1.backgroundColor = [UIColor colorWithRed:10.0/255.0 green:115.0/255.0 blue:190.0/255.0 alpha:100];
    [btn1 setTitle:@"登录" forState:UIControlStateNormal];
    [btn1 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    btn1.titleLabel.font = [UIFont systemFontOfSize:15];
    [self.view addSubview:btn1];
    btn1.layer.borderColor = [[UIColor colorWithRed:230.0/255.0 green:230.0/255.0 blue:230.0/255.0 alpha:100] CGColor];
    btn1.layer.borderWidth = 0.5f;
    [btn1 addTarget:self action:@selector(login:) forControlEvents:UIControlEventTouchUpInside];
    
    UIButton *btn2 = [[UIButton alloc] initWithFrame:CGRectMake(0, 44+100, 320, 44)];
    btn2.backgroundColor = [UIColor colorWithRed:10.0/255.0 green:115.0/255.0 blue:190.0/255.0 alpha:100];
    [btn2 setTitle:@"申请行销" forState:UIControlStateNormal];
    [btn2 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    btn2.titleLabel.font = [UIFont systemFontOfSize:15];
    [self.view addSubview:btn2];
    btn2.layer.borderColor = [[UIColor colorWithRed:230.0/255.0 green:230.0/255.0 blue:230.0/255.0 alpha:100] CGColor];
    btn2.layer.borderWidth = 0.5f;
    [btn2 addTarget:self action:@selector(applyForSale:) forControlEvents:UIControlEventTouchUpInside];
    
    UIButton *btn3 = [[UIButton alloc] initWithFrame:CGRectMake(0, 88+100, 320, 44)];
    btn3.backgroundColor = [UIColor colorWithRed:10.0/255.0 green:115.0/255.0 blue:190.0/255.0 alpha:100];
    [btn3 setTitle:@"23213" forState:UIControlStateNormal];
    [btn3 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    btn3.titleLabel.font = [UIFont systemFontOfSize:15];
    [self.view addSubview:btn3];
    btn3.layer.borderColor = [[UIColor colorWithRed:230.0/255.0 green:230.0/255.0 blue:230.0/255.0 alpha:100] CGColor];
    btn3.layer.borderWidth = 0.5f;
    [btn3 addTarget:self action:@selector(onClicked:) forControlEvents:UIControlEventTouchUpInside];
    
    UIButton *btn4 = [[UIButton alloc] initWithFrame:CGRectMake(0, 44+88+100, 320, 44)];
    btn4.backgroundColor = [UIColor colorWithRed:10.0/255.0 green:115.0/255.0 blue:190.0/255.0 alpha:100];
    [btn4 setTitle:@"23213" forState:UIControlStateNormal];
    [btn4 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    btn4.titleLabel.font = [UIFont systemFontOfSize:15];
    [self.view addSubview:btn4];
    btn4.layer.borderColor = [[UIColor colorWithRed:230.0/255.0 green:230.0/255.0 blue:230.0/255.0 alpha:100] CGColor];
    btn4.layer.borderWidth = 0.5f;
    [btn4 addTarget:self action:@selector(onClicked:) forControlEvents:UIControlEventTouchUpInside];
    
    UIButton *btn5 = [[UIButton alloc] initWithFrame:CGRectMake(0, 88+88+100, 320, 44)];
    btn5.backgroundColor = [UIColor colorWithRed:10.0/255.0 green:115.0/255.0 blue:190.0/255.0 alpha:100];
    [btn5 setTitle:@"23213" forState:UIControlStateNormal];
    [btn5 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    btn5.titleLabel.font = [UIFont systemFontOfSize:15];
    [self.view addSubview:btn5];
    btn5.layer.borderColor = [[UIColor colorWithRed:230.0/255.0 green:230.0/255.0 blue:230.0/255.0 alpha:100] CGColor];
    btn5.layer.borderWidth = 0.5f;
    [btn5 addTarget:self action:@selector(onClicked:) forControlEvents:UIControlEventTouchUpInside];
    
    
}
- (void)onClicked:(UIButton*)button
{
    BiApplyForSaleViewController * ApplyForSaleViewController = [[BiApplyForSaleViewController alloc] init];
    [self.navigationController pushViewController:ApplyForSaleViewController animated:NO];
}
- (void)login:(UIButton*)button
{
    BiLoginViewController * LoginViewController = [[BiLoginViewController alloc]init];
    [self.navigationController pushViewController:LoginViewController animated:NO];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)back:(UIBarButtonItem *)uibar
{
    [self.navigationController dismissViewControllerAnimated:YES completion:^{
        NSLog(@"aaa");
    }];
}

//applyForSale:
- (void) applyForSale:(UIButton*)button
{
    BiApplyForSaleViewController *ApplyForSaleViewController = [[BiApplyForSaleViewController alloc]init];
    [self.navigationController pushViewController:ApplyForSaleViewController animated:NO];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
